<?php
/* Start session */
session_start();

/* include the classes */
include 'include_classes.php';

/* Create new user */
$user = new User();

/* Get the username + password */
$user->username = $_POST["username"];
$user->password = $_POST["password"];
$user->emailadres = $_POST["emailaddress"];
$user->firstname = $_POST['firstname'];
$user->insertion = $_POST['insertion'];
$user->lastname = $_POST['lastname'];
$user -> register($user);
/* Register the User object 
if($user -> register($user)){
	$_SESSION["user"] = serialize($user);
	header('location: ../index.php');
} else {
	header('location: ../index.php');
}*/
?>